<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="/static/bootstrap\bootstrap-3.3.7-dist\css\bootstrap.min.css">
</head>
<body>

<div class="container">
    <!--面板-->
    <div class="panel panel-default one">
        <div class="panel-heading">
            <h1 class="panel-title">查看书籍</h1>
        </div>
        <div class="panel-body">
            <!--添加按钮-->
            <div class="">
                <a href="{% url 'add' %}">
                    <button type="button" class="btn btn-primary three">添加书籍</button>
                </a>
            </div>
{#    表格#}
    <table class="table table-bordered four">
        <thead>
            <tr>
                <th>编号</th>
                <th>书籍名称</th>
                <th>价格</th>
                <th>出版日期</th>
                <th>出版社</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {% for i in lst1 %}
                <tr class="active">
                    {% for j in i %}
                        <td>{{ j }}</td>
                    {% endfor %}
                    <td >
                    <div class="four">
                        <a href="{% url 'modify' i.0 i.1 i.2 i.3 i.4 %}"><button type="button" class="btn btn-success"><span class="glyphicon glyphicon-pencil"></span>编辑</button></a>
                        <a href="{% url 'dele' i.0 %}"><button type="button" class="btn btn-danger"><span class="glyphicon glyphicon-remove"></span>删除</button></a>
                    </div>
                </td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
</div>
</body>
</html>